#ifndef BOUTONORIENTE_H
#define BOUTONORIENTE_H
#include <QPushButton>
#include <QStyleOptionButton>

class OrientationButton : public QPushButton
{
public:
    OrientationButton(QWidget* parent = 0);
    OrientationButton(const QString& text, QWidget* parent = 0);
    OrientationButton(const QIcon& icon, const QString& text, QWidget* parent = 0);
    ~OrientationButton();

    Qt::Orientation orientation() const;
    void setOrientation(Qt::Orientation orientation);

    bool mirrored() const;
    void setMirrored(bool mirrored);


    QSize sizeHint() const;

protected:
    void paintEvent(QPaintEvent* event);

private:
    QStyleOptionButton getStyleOption() const;
    void init();

    Qt::Orientation orientation_;
    bool mirrored_;
};
#endif // BOUTONORIENTE_H
